
How to Install OwnCloud on Ubuntu 18.04

https://www.tecmint.com/install-owncloud-on-ubuntu/




sudo apt install apache2
sudo apt install libapache2-mod-php7.2

sudo apt install openssl

sudo apt install php-imagick

 sudo apt install php7.2-common

 sudo apt install php7.2-curl

 sudo apt install php7.2-gd

 sudo apt install php7.2-imap

 sudo apt install php7.2-intl

 sudo apt install php7.2-json

 sudo apt install php7.2-ldap

sudo apt install php7.2-mbstring

sudo apt install php7.2-mysql

sudo apt install php7.2-pgsql

sudo apt install php-smbclient

sudo apt install php-ssh2

sudo apt install php7.2-sqlite3

sudo apt install php7.2-xml

sudo apt install php7.2-zip


----------------

sudo apt install mariadb-server







****************
History



hckao@cloud:~$ history
    1  sudo reboot
    2  sudo armbian-config
    3  sudo apt update
    4  sudo apt upgrade
    5  sudo apt install pppoeconf ppp
    6  ifconfig
    7  sudo pppoeconf
    8  ifconfig
    9  cd /usr/local/src/
   10  sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
   11  sudo tar xf noip-duc-linux.tar.gz
   12  cd noip-2.1.9-1/
   13  make
   14  sudo make
   15  sudo make install
   16  sudo nano /etc/systemd/system/noip2.service
   17  sudo systemctl enable noip2.service
   18  sudo systemctl start noip2.service
   19  sudo apt update
   20  sudo apt upgrade
   21  cd /home/hckao/
   22  sudo apt install apache2
   23  sudo apt install libapache2-mod-php7.2
   24  sudo apt install openssl
   25  sudo apt install php-imagick
   26  sudo apt install php7.2-common
   27  sudo apt install php7.2-curl
   28  sudo apt install php7.2-gd
   29  sudo apt install php7.2-imap
   30  sudo apt install php7.2-intl
   31  sudo apt install php7.2-json
   32  sudo apt install php7.2-ldap
   33  sudo apt install php7.2-mbstring
   34  sudo apt install php7.2-mysql
   35  sudo apt install php7.2-pgsql
   36  sudo apt install php-smbclient
   37  sudo apt install php-ssh2
   38  sudo apt install php7.2-sqlite3
   39  sudo apt install php7.2-xml
   40  sudo apt install php7.2-zip
   41  sudo dpkg -l apache2
   42  sudo systemctl start apache2
   43  sudo systemctl enable apache2
   44  php -v
   45  sudo apt install mariadb-server
   46  ----------------------------------------
   47  sudo wget https://download.owncloud.org/community/owncloud-10.4.0.zip
   48  sudo unzip owncloud-10.4.0.zip -d /var/www/
   49  sudo chown -R www-data:www-data /var/www/owncloud/
   50  sudo chmod -R 755 /var/www/owncloud/
   51  sudo nano /etc/apache2/conf-available/owncloud.conf
   52  sudo a2enconf owncloud
   53  sudo a2enmod rewrite
   54  sudo a2enmod headers
   55  sudo a2enmod env
   56  sudo a2enmod mime
   57  sudo systemctl restart apache2
   58  history









Step 4: Create an OwnCloud Database


 sudo mysql -u root -p


-----原始--------------------------

MariaDB [(none)]> CREATE DATABASE owncloud_db;
MariaDB [(none)]> GRANT ALL ON owncloud_db.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'StrongP@ssword';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

-----原始結束-------------------------

-----修改

MariaDB [(none)]> CREATE DATABASE owncloud;
MariaDB [(none)]> GRANT ALL ON owncloud.* TO '6932'@'localhost' IDENTIFIED BY '693227';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

-----修改結束


sudo nano /etc/apache2/conf-available/owncloud.conf

